﻿@page "/counter"
@page "/counter/{id:int}"
<PageTitle>Counter</PageTitle>

<h1>Counter: @id</h1>

<p role="status">Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
    [Parameter]
    public int id { get; set; }
    private int currentCount = 0;

    private void IncrementCount()
    {
        currentCount++;
    }
}
